package Experiment2;

    public class Course {
        private String courseId;
        private String courseName;
        private String location;
        private String time;
        private String teacherId;

        public Course(String courseId, String courseName, String location, String time, String teacherId) {
            this.courseId = courseId;
            this.courseName = courseName;
            this.location = location;
            this.time = time;
            this.teacherId = teacherId;
        }

        // Getter方法
        public String getCourseId() { return courseId; }
        public String getCourseName() { return courseName; }
        public String getLocation() { return location; }
        public String getTime() { return time; }
        public String getTeacherId() { return teacherId; }
    }

